let { projectRootPath } = require("../../util/index");
let { getNewRouter } = require(`${projectRootPath}/app/index.js`);
let app = getNewRouter();
// 日期时间相关
app.use(
  "/datetime",
  require(`${projectRootPath}/controller/wechat/datetime/index.js`),
);
// 登陆相关
app.use(
  "/login",
  require(`${projectRootPath}/controller/wechat/login/index.js`),
);
// 用户相关
app.use("/user", require(`${projectRootPath}/controller/wechat/user/index.js`));
// 业主相关
app.use(
  "/owner",
  require(`${projectRootPath}/controller/wechat/owner/index.js`),
);
// 缴费相关
app.use("/pay", require(`${projectRootPath}/controller/wechat/pay/index.js`));
// 任务相关
app.use("/task", require(`${projectRootPath}/controller/wechat/task/index.js`));
// 配置相关
app.use(
  "/config",
  require(`${projectRootPath}/controller/wechat/config/index.js`),
);
// 备忘相关
app.use("/note", require(`${projectRootPath}/controller/wechat/note/index.js`));
// 巡区相关
app.use(
  "/patrol",
  require(`${projectRootPath}/controller/wechat/patrol/index.js`),
);
// 绕审相关
app.use(
  "/version",
  require(`${projectRootPath}/controller/wechat/version/index.js`),
);
// 导出
module.exports = app;
